Imported Upstream version 2~rc2+svn364
authorDimitrios Eftaxiopoulos <eftaxi12@otenet.gr>
Thu, 15 Mar 2012 16:50:06 +0000 (18:50 +0200)
committerDimitrios Eftaxiopoulos <eftaxi12@otenet.gr>
Thu, 15 Mar 2012 16:50:06 +0000 (18:50 +0200)
src/CMakeLists.txt

index 71efbc4422042118045a058c00c9814ded4e2575..91d7512a05e381f0b55ff0c15ef4ad321901ae9a 100644 (file)
@@ -79,11 +79,11 @@ if(use_gif)
 endif(use_gif)
 
 if(use_hdf5 OR use_hdf5_18)
-       target_link_libraries(mgl ${HDF5_LIB})
+       target_link_libraries(mgl ${HDF5_LIBRARIES})
        add_definitions(-DHAVE_HDF5)
-       if(use_hdf5)
+       if(NOT use_hdf5_18)
                add_definitions(-DH5_USE_16_API)
-       endif(use_hdf5)
+       endif(NOT use_hdf5_18)
        include_directories(${HDF5_INCLUDE_DIR})
 endif(use_hdf5 OR use_hdf5_18)